﻿
@{
    ViewBag.Title = "ReportRoom";
    Layout = "~/Views/Shared/_LayoutDate.cshtml";
}

@section SubMenu1{ 
            公寓：
            @Html.DropDownList("HouseCategoryId", ViewData["HouseCategory"] as SelectList, htmlAttributes: new { @class = "form-control" })
     

    <script type="text/javascript">
        $(document).ready(function () {
            
            $(":button").click(function () {
                $.get("/House/ReportRoomGet?StartDate=" + $("#StartDate").val() + "&EndDate=" + $("#EndDate").val() + "&HouseId=" + $("#HouseCategoryId").val(),
                    function (data, status) {
                        if (status == "success") {
                            $("#tableDetail").html(data);
                        }
                        else {
                            alert("服务器链接异常");
                        }
                    });
            });
        });
    </script>
}


